﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="ConsultaHistoricoSorteio.aspx.cs" Inherits="PopPromotoraCallCenter.Admin.ConsultaHistoricoSorteio" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Accordion ID="Accordion1" runat="server" SelectedIndex="0" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent" AutoSize="None" FadeTransitions="true" TransitionDuration="250" FramesPerSecond="40" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
        <Panes>
            <asp:AccordionPane ID="AccordionPane1" runat="server" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent">
                <Header>
                    Filtros
                </Header>
                <Content>
                    <ul class="ul">
                        <li>
                            <ul class="ul">
                                <li class="DescCampoForm">Campanha</li>
                                <li>
                                    <asp:CheckBoxList ID="cblCampanha" CellPadding="10" RepeatColumns="6" runat="server">
                                    </asp:CheckBoxList>
                                </li>
                            </ul>
                        </li>
                        <li class="marginTopField">
                            <ul class="ul">
                                <li class="DescCampoForm">Operador</li>
                                <li>
                                    <asp:CheckBoxList ID="cblAtendente" CellPadding="10" RepeatColumns="6" runat="server">
                                    </asp:CheckBoxList>
                                </li>
                            </ul>
                        </li>
                        <li class="marginTopField">
                            <ul class="ul">
                                <li class="DescCampoForm">Cliente</li>
                                <li>
                                    <asp:CheckBoxList ID="cblCliente" CellPadding="10" RepeatColumns="4" runat="server">
                                    </asp:CheckBoxList>
                                </li>
                            </ul>
                        </li>
                        <li class="marginTopField">
                            <ul class="ul">
                                <li class="li DescCampoForm" style="width: 65px;">Data Sorteio</li>
                                <li>
                                    De: 
                                    <asp:TextBox ID="txtDataDe" Width="80" runat="server"></asp:TextBox>
                                    Até: 
                                    <asp:TextBox ID="txtDataAte" Width="80" runat="server"></asp:TextBox>
                                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDataDe" Format="dd/MM/yyyy">
                                    </asp:CalendarExtender>
                                    <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDataAte" Format="dd/MM/yyyy">
                                    </asp:CalendarExtender>
                                    <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999" MaskType="Date" TargetControlID="txtDataDe">
                                    </asp:MaskedEditExtender>
                                    <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999" MaskType="Date" TargetControlID="txtDataAte">
                                    </asp:MaskedEditExtender>
                                </li>
                            </ul>
                        </li>
                        <li class="marginTopField">
                            <ul class="ul">
                                <li><br /><asp:Button ID="btnConsultar" runat="server" CssClass="BotaoForm" Text="Consultar" onclick="btnConsultar_Click" /></li>
                            </ul>
                        </li>
                    </ul>
                </Content>
            </asp:AccordionPane>
        </Panes>
        <Panes>
            <asp:AccordionPane ID="AccordionPane2" runat="server" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent">
                <Header>
                    Histórico de sorteio
                </Header>
                <Content>
                    <ul class="ul">
                        <li class="li">
                            <span class="TituloForm">Quantidade: </span><asp:Label ID="lblQtd" runat="server" Text=""></asp:Label>
                            <asp:GridView ID="gvHistorico" runat="server" PageSize="30" AllowPaging="true"
                                DataKeyNames="idHistoricoSorteio" AutoGenerateColumns="False" CellPadding="4" 
                                ForeColor="#333333" GridLines="None" CssClass="labelCampo" OnPageIndexChanging="gvHistorico_PageIndexChanging">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:BoundField HeaderText="Campanha" DataField="nomeCampanha" />
                                    <asp:BoundField HeaderText="Operador" DataField="nomeAtendente" />
                                    <asp:BoundField HeaderText="Cliente" DataField="nomeCliente" />
                                    <asp:BoundField HeaderText="Data Sorteio" DataField="dtSorteio" />
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </li>
                        <li class="li" style="margin-left: 20px;">
                            <ul class="ul">
                                <li><span class="DescCampoForm">Ranking clientes sorteados</span></li>
                                <li>
                                    <asp:GridView ID="gvRankingSorteio" runat="server" PageSize="30" AllowPaging="true"
                                        DataKeyNames="idHistoricoSorteio" AutoGenerateColumns="False" CellPadding="4" 
                                        ForeColor="#333333" GridLines="None" CssClass="labelCampo" OnPageIndexChanging="gvHistorico_PageIndexChanging">
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:BoundField HeaderText="Cliente" DataField="nomeCliente" />
                                            <asp:BoundField HeaderText="Quantidade" DataField="qtdSorteado" />
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                    </asp:GridView>
                                </li>
                            </ul>
                        </li>
                        <li class="li" style="margin-left: 20px;">
                            <ul class="ul">
                                <li><span class="DescCampoForm">Ranking clientes sorteados por Campanha</span></li>
                                <li>
                                    <asp:GridView ID="gvRankingSorteioCampanha" runat="server" PageSize="30" AllowPaging="true"
                                        DataKeyNames="idHistoricoSorteio" AutoGenerateColumns="False" CellPadding="4" 
                                        ForeColor="#333333" GridLines="None" CssClass="labelCampo" OnPageIndexChanging="gvHistorico_PageIndexChanging">
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:BoundField HeaderText="Campanha" DataField="nomeCampanha" />
                                            <asp:BoundField HeaderText="Cliente" DataField="nomeCliente" />
                                            <asp:BoundField HeaderText="Quantidade" DataField="qtdSorteado" />
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                    </asp:GridView>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </Content>
            </asp:AccordionPane>        
        </Panes>
    </asp:Accordion>
</asp:Content>